\hypertarget{structeasyio__api}{
\section{easyio\_\-api结构参考}
\label{structeasyio__api}\index{easyio\_\-api@{easyio\_\-api}}
}
\subsection*{公有属性}
\begin{DoxyCompactItemize}
\item 
int($\ast$ \hyperlink{structeasyio__api_a43be80ce5ebd638efe4b6af8e358686f}{SerialPrintf} )(USART\_\-PORT\_\-NUM port, char $\ast$fmt,...)
\item 
EIResult\_\-t($\ast$ \hyperlink{structeasyio__api_a1298934569b7e9b86cee12ff6cfd00de}{WriteSerial} )(USART\_\-PORT\_\-NUM port, unsigned char $\ast$buffer, int size)
\item 
EIResult\_\-t($\ast$ \hyperlink{structeasyio__api_a7274351a1e90fd37a14cd54ac422f3b0}{ReadEEPROM} )(int pos, unsigned char $\ast$buffer, int size)
\item 
EIResult\_\-t($\ast$ \hyperlink{structeasyio__api_a74371fc16142695ab3b29d05fe425312}{WriteEEPROM} )(int pos, unsigned char $\ast$buffer, int size)
\item 
EIResult\_\-t($\ast$ \hyperlink{structeasyio__api_af3e6a306a1a65ded6d5ca09cf3edab15}{GetGsmLoc} )(struct \hyperlink{structGsmLocInfo}{GsmLocInfo} $\ast$info)
\item 
EIResult\_\-t($\ast$ \hyperlink{structeasyio__api_ad40530d74061e02d17ebbf8226c38693}{SendSms} )(const char $\ast$phonenum, const char $\ast$body)
\item 
EIResult\_\-t($\ast$ \hyperlink{structeasyio__api_acc85d91094267019c995d422f7374b5c}{SendTcpData} )(unsigned char $\ast$buffer, int size)
\item 
EIResult\_\-t($\ast$ \hyperlink{structeasyio__api_a687bd71e660b5262e599b0dcbba125e4}{SendP2paMsg} )(const char $\ast$imei, const char $\ast$body)
\item 
EIResult\_\-t($\ast$ \hyperlink{structeasyio__api_a10bd83b74e7674cf1b41c1c835f67e18}{SendXmppMsg} )(const char $\ast$to, const char $\ast$body)
\item 
int($\ast$ \hyperlink{structeasyio__api_a4aed707d19689eaf460d796e533dc7a5}{HttpRequest} )(const char $\ast$url, const char $\ast$UserHeader, char $\ast$RespBuffer, int RespBufSize)
\item 
int($\ast$ \hyperlink{structeasyio__api_ac4641b9f122776bf385aa367442e5117}{SignalValue} )()
\item 
EIResult\_\-t($\ast$ \hyperlink{structeasyio__api_a9abdfb8954c0614631aba81b3ca803ea}{GetSysInfo} )(struct \hyperlink{structSysInfo}{SysInfo} $\ast$info)
\item 
unsigned int($\ast$ \hyperlink{structeasyio__api_ab380e2959518653845121398cdae8dd9}{CreateThread} )(int StackSize, void $\ast$ThreadEntry, void $\ast$ThreadParam)
\item 
EIResult\_\-t($\ast$ \hyperlink{structeasyio__api_acba344fcea0062f45e37d375fee5965d}{AddTask} )(void $\ast$TaskEntry, void $\ast$TaskParam)
\item 
void($\ast$ \hyperlink{structeasyio__api_a165c7f839018626220040c9d6ec073f3}{Sleep} )(int tick)
\item 
void($\ast$ \hyperlink{structeasyio__api_ab2d14bcff1a407065504adfa7847cb87}{DelayUS} )(int us)
\item 
void($\ast$ \hyperlink{structeasyio__api_a87b0fc130fd913a428e779b09549984d}{EnableWatchDog} )()
\item 
void($\ast$ \hyperlink{structeasyio__api_a0bf72d0606b8256b399516c5db275c2e}{ResetSystem} )()
\item 
void($\ast$ \hyperlink{structeasyio__api_a5baf2731b1fc36b8cf995d14333a682a}{ResetGprsMoudle} )()
\item 
void($\ast$ \hyperlink{structeasyio__api_a018117a6eafcfe6ff30dd0b3b48f93e9}{SetSysDebugMask} )(int mask)
\item 
void($\ast$ \hyperlink{structeasyio__api_ac110b5ee4272d5b0228be46207784335}{SetRecvSmsHook} )(struct \hyperlink{structeasyio__api}{easyio\_\-api} $\ast$api, void($\ast$func)(char $\ast$phonenum, char $\ast$str))
\item 
void($\ast$ \hyperlink{structeasyio__api_ad93cca0151c9b9f937c7bec2bf85d7f7}{SetRecvWechatHook} )(struct \hyperlink{structeasyio__api}{easyio\_\-api} $\ast$api, void($\ast$func)(char $\ast$from, char $\ast$msg, EIResult\_\-t($\ast$relpy)(char $\ast$msg)))
\item 
void($\ast$ \hyperlink{structeasyio__api_a644fdef9503b073e0afa29b52d94b932}{SetRecvTcpcliDataHook} )(struct \hyperlink{structeasyio__api}{easyio\_\-api} $\ast$api, void($\ast$func)(unsigned char $\ast$buffer, int size))
\item 
void($\ast$ \hyperlink{structeasyio__api_ae3c9dbc52f62284189c1e4c25eebdedf}{SetRecvSerialDataHook} )(struct \hyperlink{structeasyio__api}{easyio\_\-api} $\ast$api, void($\ast$func)(USART\_\-PORT\_\-NUM port, unsigned char $\ast$buffer, int size))
\item 
void($\ast$ \hyperlink{structeasyio__api_a8068c5f078a50b0bc8551b5c6cf9b430}{SetRecvDebugDataHook} )(struct \hyperlink{structeasyio__api}{easyio\_\-api} $\ast$api, void($\ast$func)(unsigned char $\ast$buffer, int size))
\item 
void($\ast$ \hyperlink{structeasyio__api_a3ef076065163de890e981162e27f6ff8}{RecvSmsFunc} )(char $\ast$from, char $\ast$body)
\item 
void($\ast$ \hyperlink{structeasyio__api_a4fad4f5f6389e0fa43ec11a4eca4fb78}{RecvWechatFunc} )(char $\ast$from, char $\ast$body, EIResult\_\-t($\ast$relpy)(char $\ast$msg))
\item 
void($\ast$ \hyperlink{structeasyio__api_ac0882bcaab788dd8a9f1dfe1335b0d50}{RecvTcpDataFunc} )(unsigned char $\ast$buffer, int size)
\item 
void($\ast$ \hyperlink{structeasyio__api_a89edcc1e11ff1453b4798eb5222b1639}{RecvSerialDataFunc} )(USART\_\-PORT\_\-NUM port, unsigned char $\ast$buffer, int size)
\end{DoxyCompactItemize}


\subsection{成员数据文档}
\hypertarget{structeasyio__api_acba344fcea0062f45e37d375fee5965d}{
\index{easyio\_\-api@{easyio\_\-api}!AddTask@{AddTask}}
\index{AddTask@{AddTask}!easyio_api@{easyio\_\-api}}
\subsubsection[{AddTask}]{\setlength{\rightskip}{0pt plus 5cm}EIResult\_\-t($\ast$ {\bf easyio\_\-api::AddTask})(void $\ast$TaskEntry, void $\ast$TaskParam)}}
\label{structeasyio__api_acba344fcea0062f45e37d375fee5965d}
创建一个线程

param\mbox{[}in\mbox{]} TaskEntry 任务函数入口 param\mbox{[}in\mbox{]} TaskParam 任务函数参数 \begin{DoxyReturn}{返回}
任务是否添加成功 
\end{DoxyReturn}
\hypertarget{structeasyio__api_ab380e2959518653845121398cdae8dd9}{
\index{easyio\_\-api@{easyio\_\-api}!CreateThread@{CreateThread}}
\index{CreateThread@{CreateThread}!easyio_api@{easyio\_\-api}}
\subsubsection[{CreateThread}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int($\ast$ {\bf easyio\_\-api::CreateThread})(int StackSize, void $\ast$ThreadEntry, void $\ast$ThreadParam)}}
\label{structeasyio__api_ab380e2959518653845121398cdae8dd9}
创建一个线程

param\mbox{[}in\mbox{]} StackSize 线程运行的栈空间 param\mbox{[}in\mbox{]} ThreadEntry 线程函数入口 param\mbox{[}in\mbox{]} ThreadParam 线程入口函数参数 \begin{DoxyReturn}{返回}
线程ID 
\end{DoxyReturn}
\hypertarget{structeasyio__api_ab2d14bcff1a407065504adfa7847cb87}{
\index{easyio\_\-api@{easyio\_\-api}!DelayUS@{DelayUS}}
\index{DelayUS@{DelayUS}!easyio_api@{easyio\_\-api}}
\subsubsection[{DelayUS}]{\setlength{\rightskip}{0pt plus 5cm}void($\ast$ {\bf easyio\_\-api::DelayUS})(int us)}}
\label{structeasyio__api_ab2d14bcff1a407065504adfa7847cb87}
微妙级延迟函数,高精度。

\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{structeasyio__api_a87b0fc130fd913a428e779b09549984d}{
\index{easyio\_\-api@{easyio\_\-api}!EnableWatchDog@{EnableWatchDog}}
\index{EnableWatchDog@{EnableWatchDog}!easyio_api@{easyio\_\-api}}
\subsubsection[{EnableWatchDog}]{\setlength{\rightskip}{0pt plus 5cm}void($\ast$ {\bf easyio\_\-api::EnableWatchDog})()}}
\label{structeasyio__api_a87b0fc130fd913a428e779b09549984d}
打开看门狗

\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{structeasyio__api_af3e6a306a1a65ded6d5ca09cf3edab15}{
\index{easyio\_\-api@{easyio\_\-api}!GetGsmLoc@{GetGsmLoc}}
\index{GetGsmLoc@{GetGsmLoc}!easyio_api@{easyio\_\-api}}
\subsubsection[{GetGsmLoc}]{\setlength{\rightskip}{0pt plus 5cm}EIResult\_\-t($\ast$ {\bf easyio\_\-api::GetGsmLoc})(struct {\bf GsmLocInfo} $\ast$info)}}
\label{structeasyio__api_af3e6a306a1a65ded6d5ca09cf3edab15}
获取基站位置信息

\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{structeasyio__api_a9abdfb8954c0614631aba81b3ca803ea}{
\index{easyio\_\-api@{easyio\_\-api}!GetSysInfo@{GetSysInfo}}
\index{GetSysInfo@{GetSysInfo}!easyio_api@{easyio\_\-api}}
\subsubsection[{GetSysInfo}]{\setlength{\rightskip}{0pt plus 5cm}EIResult\_\-t($\ast$ {\bf easyio\_\-api::GetSysInfo})(struct {\bf SysInfo} $\ast$info)}}
\label{structeasyio__api_a9abdfb8954c0614631aba81b3ca803ea}
获取系统信息

param\mbox{[}out\mbox{]} info : 输出系统信息结构体 \begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{structeasyio__api_a4aed707d19689eaf460d796e533dc7a5}{
\index{easyio\_\-api@{easyio\_\-api}!HttpRequest@{HttpRequest}}
\index{HttpRequest@{HttpRequest}!easyio_api@{easyio\_\-api}}
\subsubsection[{HttpRequest}]{\setlength{\rightskip}{0pt plus 5cm}int($\ast$ {\bf easyio\_\-api::HttpRequest})(const char $\ast$url, const char $\ast$UserHeader,char $\ast$RespBuffer, int RespBufSize)}}
\label{structeasyio__api_a4aed707d19689eaf460d796e533dc7a5}
发起HTTP请求，目前仅支持GET请求


\begin{DoxyParams}{参数}
\item[\mbox{\tt[in]} {\em url}]: 要请求的URL \item[\mbox{\tt[in]} {\em Userheader}]：用户字定义请求头，一般为 NULL \item[\mbox{\tt[in]} {\em RespBuffer}]: HTTP请求的返回结果保存在此缓冲中 \item[\mbox{\tt[in]} {\em RespBufSize,:}]HTTP缓冲的大小 \end{DoxyParams}
\begin{DoxyReturn}{返回}
返回真正获取到的数据长度 返回“0代表”失败 
\end{DoxyReturn}
\hypertarget{structeasyio__api_a7274351a1e90fd37a14cd54ac422f3b0}{
\index{easyio\_\-api@{easyio\_\-api}!ReadEEPROM@{ReadEEPROM}}
\index{ReadEEPROM@{ReadEEPROM}!easyio_api@{easyio\_\-api}}
\subsubsection[{ReadEEPROM}]{\setlength{\rightskip}{0pt plus 5cm}EIResult\_\-t($\ast$ {\bf easyio\_\-api::ReadEEPROM})(int pos, unsigned char $\ast$buffer, int size)}}
\label{structeasyio__api_a7274351a1e90fd37a14cd54ac422f3b0}
读取EEPROM中的内容


\begin{DoxyParams}{参数}
\item[\mbox{\tt[in]} {\em pos}]: 要读取的位置 \item[\mbox{\tt[out]} {\em buffer}]: 存储读出内容的缓冲 \item[\mbox{\tt[in]} {\em size}]: 读取长度\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{structeasyio__api_a89edcc1e11ff1453b4798eb5222b1639}{
\index{easyio\_\-api@{easyio\_\-api}!RecvSerialDataFunc@{RecvSerialDataFunc}}
\index{RecvSerialDataFunc@{RecvSerialDataFunc}!easyio_api@{easyio\_\-api}}
\subsubsection[{RecvSerialDataFunc}]{\setlength{\rightskip}{0pt plus 5cm}void($\ast$ {\bf easyio\_\-api::RecvSerialDataFunc})(USART\_\-PORT\_\-NUM port, unsigned char $\ast$buffer, int size)}}
\label{structeasyio__api_a89edcc1e11ff1453b4798eb5222b1639}
接收串口数据

param\mbox{[}out\mbox{]} buffer : 接收缓冲区 param\mbox{[}out\mbox{]} size : 缓冲区大小大小 \begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{structeasyio__api_a3ef076065163de890e981162e27f6ff8}{
\index{easyio\_\-api@{easyio\_\-api}!RecvSmsFunc@{RecvSmsFunc}}
\index{RecvSmsFunc@{RecvSmsFunc}!easyio_api@{easyio\_\-api}}
\subsubsection[{RecvSmsFunc}]{\setlength{\rightskip}{0pt plus 5cm}void($\ast$ {\bf easyio\_\-api::RecvSmsFunc})(char $\ast$from, char $\ast$body)}}
\label{structeasyio__api_a3ef076065163de890e981162e27f6ff8}
接收短信

param\mbox{[}out\mbox{]} phonenum : 发送者电话号码 param\mbox{[}out\mbox{]} str : 短信内容 \begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{structeasyio__api_ac0882bcaab788dd8a9f1dfe1335b0d50}{
\index{easyio\_\-api@{easyio\_\-api}!RecvTcpDataFunc@{RecvTcpDataFunc}}
\index{RecvTcpDataFunc@{RecvTcpDataFunc}!easyio_api@{easyio\_\-api}}
\subsubsection[{RecvTcpDataFunc}]{\setlength{\rightskip}{0pt plus 5cm}void($\ast$ {\bf easyio\_\-api::RecvTcpDataFunc})(unsigned char $\ast$buffer, int size)}}
\label{structeasyio__api_ac0882bcaab788dd8a9f1dfe1335b0d50}
接收Tcp数据

param\mbox{[}out\mbox{]} buffer : 接收缓冲区 param\mbox{[}out\mbox{]} size : 缓冲区大小大小 \begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{structeasyio__api_a4fad4f5f6389e0fa43ec11a4eca4fb78}{
\index{easyio\_\-api@{easyio\_\-api}!RecvWechatFunc@{RecvWechatFunc}}
\index{RecvWechatFunc@{RecvWechatFunc}!easyio_api@{easyio\_\-api}}
\subsubsection[{RecvWechatFunc}]{\setlength{\rightskip}{0pt plus 5cm}void($\ast$ {\bf easyio\_\-api::RecvWechatFunc})(char $\ast$from, char $\ast$body, EIResult\_\-t($\ast$relpy)(char $\ast$msg))}}
\label{structeasyio__api_a4fad4f5f6389e0fa43ec11a4eca4fb78}
接收微信

param\mbox{[}out\mbox{]} from : 发送者ID param\mbox{[}out\mbox{]} msg : 微信内容 param\mbox{[}out\mbox{]} reply : 回复消息句柄 \begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{structeasyio__api_a5baf2731b1fc36b8cf995d14333a682a}{
\index{easyio\_\-api@{easyio\_\-api}!ResetGprsMoudle@{ResetGprsMoudle}}
\index{ResetGprsMoudle@{ResetGprsMoudle}!easyio_api@{easyio\_\-api}}
\subsubsection[{ResetGprsMoudle}]{\setlength{\rightskip}{0pt plus 5cm}void($\ast$ {\bf easyio\_\-api::ResetGprsMoudle})()}}
\label{structeasyio__api_a5baf2731b1fc36b8cf995d14333a682a}
GPRS 模块重启 ,只针对 gprs 模块进行复位重启

\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{structeasyio__api_a0bf72d0606b8256b399516c5db275c2e}{
\index{easyio\_\-api@{easyio\_\-api}!ResetSystem@{ResetSystem}}
\index{ResetSystem@{ResetSystem}!easyio_api@{easyio\_\-api}}
\subsubsection[{ResetSystem}]{\setlength{\rightskip}{0pt plus 5cm}void($\ast$ {\bf easyio\_\-api::ResetSystem})()}}
\label{structeasyio__api_a0bf72d0606b8256b399516c5db275c2e}
设备重启 ,执行此函数后，模块和MCU都将重启

\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{structeasyio__api_a687bd71e660b5262e599b0dcbba125e4}{
\index{easyio\_\-api@{easyio\_\-api}!SendP2paMsg@{SendP2paMsg}}
\index{SendP2paMsg@{SendP2paMsg}!easyio_api@{easyio\_\-api}}
\subsubsection[{SendP2paMsg}]{\setlength{\rightskip}{0pt plus 5cm}EIResult\_\-t($\ast$ {\bf easyio\_\-api::SendP2paMsg})(const char $\ast$imei, const char $\ast$body)}}
\label{structeasyio__api_a687bd71e660b5262e599b0dcbba125e4}
发送P2p消息


\begin{DoxyParams}{参数}
\item[\mbox{\tt[in]} {\em imei}]: 目的IMEI \item[\mbox{\tt[in]} {\em body}]：内容\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{structeasyio__api_ad40530d74061e02d17ebbf8226c38693}{
\index{easyio\_\-api@{easyio\_\-api}!SendSms@{SendSms}}
\index{SendSms@{SendSms}!easyio_api@{easyio\_\-api}}
\subsubsection[{SendSms}]{\setlength{\rightskip}{0pt plus 5cm}EIResult\_\-t($\ast$ {\bf easyio\_\-api::SendSms})(const char $\ast$phonenum,const char $\ast$body)}}
\label{structeasyio__api_ad40530d74061e02d17ebbf8226c38693}
发送短信


\begin{DoxyParams}{参数}
\item[\mbox{\tt[in]} {\em phonenum}]: 目标手机号码 \item[\mbox{\tt[in]} {\em body}]: 发送内容\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{structeasyio__api_acc85d91094267019c995d422f7374b5c}{
\index{easyio\_\-api@{easyio\_\-api}!SendTcpData@{SendTcpData}}
\index{SendTcpData@{SendTcpData}!easyio_api@{easyio\_\-api}}
\subsubsection[{SendTcpData}]{\setlength{\rightskip}{0pt plus 5cm}EIResult\_\-t($\ast$ {\bf easyio\_\-api::SendTcpData})(unsigned char $\ast$buffer, int size)}}
\label{structeasyio__api_acc85d91094267019c995d422f7374b5c}
发DTU送数据


\begin{DoxyParams}{参数}
\item[\mbox{\tt[in]} {\em buffer}]: 发送缓冲 \item[\mbox{\tt[in]} {\em size}]: 发送长度\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{structeasyio__api_a10bd83b74e7674cf1b41c1c835f67e18}{
\index{easyio\_\-api@{easyio\_\-api}!SendXmppMsg@{SendXmppMsg}}
\index{SendXmppMsg@{SendXmppMsg}!easyio_api@{easyio\_\-api}}
\subsubsection[{SendXmppMsg}]{\setlength{\rightskip}{0pt plus 5cm}EIResult\_\-t($\ast$ {\bf easyio\_\-api::SendXmppMsg})(const char $\ast$to, const char $\ast$body)}}
\label{structeasyio__api_a10bd83b74e7674cf1b41c1c835f67e18}
发送XMPP消息


\begin{DoxyParams}{参数}
\item[\mbox{\tt[in]} {\em to}]: 目的ID \item[\mbox{\tt[in]} {\em body}]：内容\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{structeasyio__api_a43be80ce5ebd638efe4b6af8e358686f}{
\index{easyio\_\-api@{easyio\_\-api}!SerialPrintf@{SerialPrintf}}
\index{SerialPrintf@{SerialPrintf}!easyio_api@{easyio\_\-api}}
\subsubsection[{SerialPrintf}]{\setlength{\rightskip}{0pt plus 5cm}int($\ast$ {\bf easyio\_\-api::SerialPrintf})(USART\_\-PORT\_\-NUM port, char $\ast$fmt,...)}}
\label{structeasyio__api_a43be80ce5ebd638efe4b6af8e358686f}
格式化输出字符串到串口


\begin{DoxyParams}{参数}
\item[\mbox{\tt[in]} {\em fmt}]: 格式化字符串\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{structeasyio__api_a8068c5f078a50b0bc8551b5c6cf9b430}{
\index{easyio\_\-api@{easyio\_\-api}!SetRecvDebugDataHook@{SetRecvDebugDataHook}}
\index{SetRecvDebugDataHook@{SetRecvDebugDataHook}!easyio_api@{easyio\_\-api}}
\subsubsection[{SetRecvDebugDataHook}]{\setlength{\rightskip}{0pt plus 5cm}void($\ast$ {\bf easyio\_\-api::SetRecvDebugDataHook})(struct {\bf easyio\_\-api} $\ast$api, void($\ast$func)(unsigned char $\ast$buffer, int size))}}
\label{structeasyio__api_a8068c5f078a50b0bc8551b5c6cf9b430}
监听调试串口的数据到达


\begin{DoxyParams}{参数}
\item[\mbox{\tt[in]} {\em func}]函数指针类型的参数,需要严格按照参数进行传值,否则会出现系统崩溃 \end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{structeasyio__api_ae3c9dbc52f62284189c1e4c25eebdedf}{
\index{easyio\_\-api@{easyio\_\-api}!SetRecvSerialDataHook@{SetRecvSerialDataHook}}
\index{SetRecvSerialDataHook@{SetRecvSerialDataHook}!easyio_api@{easyio\_\-api}}
\subsubsection[{SetRecvSerialDataHook}]{\setlength{\rightskip}{0pt plus 5cm}void($\ast$ {\bf easyio\_\-api::SetRecvSerialDataHook})(struct {\bf easyio\_\-api} $\ast$api, void($\ast$func)(USART\_\-PORT\_\-NUM port, unsigned char $\ast$buffer, int size))}}
\label{structeasyio__api_ae3c9dbc52f62284189c1e4c25eebdedf}
监听串口数据到达的监听器


\begin{DoxyParams}{参数}
\item[\mbox{\tt[in]} {\em func}]函数指针类型的参数,需要严格按照参数进行传值,否则会出现系统崩溃 \end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{structeasyio__api_ac110b5ee4272d5b0228be46207784335}{
\index{easyio\_\-api@{easyio\_\-api}!SetRecvSmsHook@{SetRecvSmsHook}}
\index{SetRecvSmsHook@{SetRecvSmsHook}!easyio_api@{easyio\_\-api}}
\subsubsection[{SetRecvSmsHook}]{\setlength{\rightskip}{0pt plus 5cm}void($\ast$ {\bf easyio\_\-api::SetRecvSmsHook})(struct {\bf easyio\_\-api} $\ast$api, void($\ast$func)(char $\ast$phonenum, char $\ast$str))}}
\label{structeasyio__api_ac110b5ee4272d5b0228be46207784335}
监听短信到达的监听器


\begin{DoxyParams}{参数}
\item[\mbox{\tt[in]} {\em func}]函数指针类型的参数,需要严格按照参数进行传值,否则会出现系统崩溃 \end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{structeasyio__api_a644fdef9503b073e0afa29b52d94b932}{
\index{easyio\_\-api@{easyio\_\-api}!SetRecvTcpcliDataHook@{SetRecvTcpcliDataHook}}
\index{SetRecvTcpcliDataHook@{SetRecvTcpcliDataHook}!easyio_api@{easyio\_\-api}}
\subsubsection[{SetRecvTcpcliDataHook}]{\setlength{\rightskip}{0pt plus 5cm}void($\ast$ {\bf easyio\_\-api::SetRecvTcpcliDataHook})(struct {\bf easyio\_\-api} $\ast$api, void($\ast$func)(unsigned char $\ast$buffer, int size))}}
\label{structeasyio__api_a644fdef9503b073e0afa29b52d94b932}
监听TCP客户端数据到达的监听器


\begin{DoxyParams}{参数}
\item[\mbox{\tt[in]} {\em func}]函数指针类型的参数,需要严格按照参数进行传值,否则会出现系统崩溃 \end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{structeasyio__api_ad93cca0151c9b9f937c7bec2bf85d7f7}{
\index{easyio\_\-api@{easyio\_\-api}!SetRecvWechatHook@{SetRecvWechatHook}}
\index{SetRecvWechatHook@{SetRecvWechatHook}!easyio_api@{easyio\_\-api}}
\subsubsection[{SetRecvWechatHook}]{\setlength{\rightskip}{0pt plus 5cm}void($\ast$ {\bf easyio\_\-api::SetRecvWechatHook})(struct {\bf easyio\_\-api} $\ast$api, void($\ast$func)(char $\ast$from, char $\ast$msg, EIResult\_\-t($\ast$relpy)(char $\ast$msg)))}}
\label{structeasyio__api_ad93cca0151c9b9f937c7bec2bf85d7f7}
监听微信到达的监听器


\begin{DoxyParams}{参数}
\item[\mbox{\tt[in]} {\em func}]函数指针类型的参数,需要严格按照参数进行传值,否则会出现系统崩溃 \end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{structeasyio__api_a018117a6eafcfe6ff30dd0b3b48f93e9}{
\index{easyio\_\-api@{easyio\_\-api}!SetSysDebugMask@{SetSysDebugMask}}
\index{SetSysDebugMask@{SetSysDebugMask}!easyio_api@{easyio\_\-api}}
\subsubsection[{SetSysDebugMask}]{\setlength{\rightskip}{0pt plus 5cm}void($\ast$ {\bf easyio\_\-api::SetSysDebugMask})(int mask)}}
\label{structeasyio__api_a018117a6eafcfe6ff30dd0b3b48f93e9}
设置调试信息输出掩码

\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{structeasyio__api_ac4641b9f122776bf385aa367442e5117}{
\index{easyio\_\-api@{easyio\_\-api}!SignalValue@{SignalValue}}
\index{SignalValue@{SignalValue}!easyio_api@{easyio\_\-api}}
\subsubsection[{SignalValue}]{\setlength{\rightskip}{0pt plus 5cm}int($\ast$ {\bf easyio\_\-api::SignalValue})()}}
\label{structeasyio__api_ac4641b9f122776bf385aa367442e5117}
获取信号质量

\begin{DoxyReturn}{返回}
返回信号数值 \mbox{[}0-\/30\mbox{]} 
\end{DoxyReturn}
\hypertarget{structeasyio__api_a165c7f839018626220040c9d6ec073f3}{
\index{easyio\_\-api@{easyio\_\-api}!Sleep@{Sleep}}
\index{Sleep@{Sleep}!easyio_api@{easyio\_\-api}}
\subsubsection[{Sleep}]{\setlength{\rightskip}{0pt plus 5cm}void($\ast$ {\bf easyio\_\-api::Sleep})(int tick)}}
\label{structeasyio__api_a165c7f839018626220040c9d6ec073f3}
休眠百分之一妙,100个tick为1秒 ,api.Sleep(1); 10毫秒延迟

\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{structeasyio__api_a74371fc16142695ab3b29d05fe425312}{
\index{easyio\_\-api@{easyio\_\-api}!WriteEEPROM@{WriteEEPROM}}
\index{WriteEEPROM@{WriteEEPROM}!easyio_api@{easyio\_\-api}}
\subsubsection[{WriteEEPROM}]{\setlength{\rightskip}{0pt plus 5cm}EIResult\_\-t($\ast$ {\bf easyio\_\-api::WriteEEPROM})(int pos, unsigned char $\ast$buffer, int size)}}
\label{structeasyio__api_a74371fc16142695ab3b29d05fe425312}
将内容写入EEPROM


\begin{DoxyParams}{参数}
\item[\mbox{\tt[in]} {\em pos}]: 要写入的位置 \item[\mbox{\tt[out]} {\em buffer}]: 写入缓冲 \item[\mbox{\tt[in]} {\em size}]: 写入长度\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\hypertarget{structeasyio__api_a1298934569b7e9b86cee12ff6cfd00de}{
\index{easyio\_\-api@{easyio\_\-api}!WriteSerial@{WriteSerial}}
\index{WriteSerial@{WriteSerial}!easyio_api@{easyio\_\-api}}
\subsubsection[{WriteSerial}]{\setlength{\rightskip}{0pt plus 5cm}EIResult\_\-t($\ast$ {\bf easyio\_\-api::WriteSerial})(USART\_\-PORT\_\-NUM port, unsigned char $\ast$buffer, int size)}}
\label{structeasyio__api_a1298934569b7e9b86cee12ff6cfd00de}
将内容写入串口


\begin{DoxyParams}{参数}
\item[\mbox{\tt[in]} {\em buffer}]: 写入缓冲 \item[\mbox{\tt[in]} {\em size}]: 写入长度\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}


该结构的文档由以下文件生成：\begin{DoxyCompactItemize}
\item 
\hyperlink{api_8h}{api.h}\end{DoxyCompactItemize}
